import random
x = input("输入8个1-33的整数：").split(",")
xlist = [int(x[i]) for i in range(len(x))]
print(xlist)
a = []
for i in range(1000):
    for i in range(8):
        a.append(random.randint(1, 33))
if a == xlist:
    print("一等奖")
elif len(set(a).intersection(set(xlist))) == 7:
    print("二等奖")
elif len(set(a).intersection(set(xlist))) == 6:
    print("三等奖")
elif len(set(a).intersection(set(xlist))) == 5:
    print("四等奖")
print("中奖号码为{}".format(a))